/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFLoguearse.java
 *
 * Created on 15/05/2010, 03:00:11 PM
 */

package Interfaz;

/**
 *
 * @author Rossana Sifontes
 */
public class JFLoguearse extends javax.swing.JFrame {

    /** Creates new form JFLoguearse */
    public JFLoguearse() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jPasswordField1 = new javax.swing.JPasswordField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLayeredPane1.setName("jLayeredPane1"); // NOI18N

        jLabel1.setText("Para ingresar al sistema introduzca su nombre y contraseña, luego presione el botón \"Iniciar ");
        jLabel1.setName("jLabel1"); // NOI18N
        jLabel1.setBounds(30, 80, 540, 20);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.PALETTE_LAYER);

        jLabel2.setText("Sesion\". Si usted es usuario nuevo presione el botón de \"Registrarse\".");
        jLabel2.setName("jLabel2"); // NOI18N
        jLabel2.setBounds(30, 100, 500, 14);
        jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.MODAL_LAYER);

        jLabel3.setText("Nombre Usuario:");
        jLabel3.setName("jLabel3"); // NOI18N
        jLabel3.setBounds(150, 140, 110, 20);
        jLayeredPane1.add(jLabel3, javax.swing.JLayeredPane.PALETTE_LAYER);

        jTextField1.setName("jTextField1"); // NOI18N
        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        jTextField1.setBounds(270, 140, 110, 20);
        jLayeredPane1.add(jTextField1, javax.swing.JLayeredPane.PALETTE_LAYER);

        jLabel4.setText("Contraseña:");
        jLabel4.setName("jLabel4"); // NOI18N
        jLabel4.setBounds(150, 184, 100, 20);
        jLayeredPane1.add(jLabel4, javax.swing.JLayeredPane.PALETTE_LAYER);

        jPasswordField1.setName("jPasswordField1"); // NOI18N
        jPasswordField1.setBounds(270, 180, 110, 20);
        jLayeredPane1.add(jPasswordField1, javax.swing.JLayeredPane.PALETTE_LAYER);

        jButton1.setText("Iniciar Sesión");
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jButton1.setBounds(400, 260, 120, 23);
        jLayeredPane1.add(jButton1, javax.swing.JLayeredPane.PALETTE_LAYER);

        jButton2.setText("Registrarse");
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        jButton2.setBounds(50, 260, 110, 23);
        jLayeredPane1.add(jButton2, javax.swing.JLayeredPane.PALETTE_LAYER);

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagen/Fondo Naranja.jpg"))); // NOI18N
        jLabel5.setText("jLabel5");
        jLabel5.setName("jLabel5"); // NOI18N
        jLabel5.setBounds(0, 30, 600, 20);
        jLayeredPane1.add(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagen/fondoazul.jpeg"))); // NOI18N
        jLabel6.setText("jLabel6");
        jLabel6.setName("jLabel6"); // NOI18N
        jLabel6.setBounds(0, 0, 600, 330);
        jLayeredPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel7.setText("Iniciar Sesión:");
        jLabel7.setName("jLabel7"); // NOI18N
        jLabel7.setBounds(40, 30, 80, 20);
        jLayeredPane1.add(jLabel7, javax.swing.JLayeredPane.PALETTE_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 595, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 327, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        JFregistrarse ventana1 = new JFregistrarse();
        ventana1.setVisible(true);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        JFReservar ventana2 = new JFReservar ();
        ventana2.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
    * @param args the command line arguments
    */
   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPasswordField jPasswordField1;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration//GEN-END:variables

}
